package com.zk.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: 张凯
 * @date: 2022/5/11 - 18:52
 */
@Configuration
@MapperScan("com.zk.yygh.hosp.mapper")
//@MapperScan("com/zk/yygh/hosp/mapper")   该方式也行
public class HospitalConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
